package cn.tedu.boke.portal.mapper;

import cn.tedu.boke.portal.model.Likenum;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 点赞 Mapper 接口
 * </p>
 *
 * @author tedu.cn
 * @since 2021-11-04
 */
@Repository
public interface LikeMapper extends BaseMapper<Likenum>
{
    @Select("SELECT COUNT(post_id) FROM likenum WHERE post_id=#{id}")
    int likenum(Integer id);
}
